package zerous.modpeeditor;

import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
import android.view.View.*;
import android.content.*;

import java.util.*;

public class ItemID extends ListActivity
{
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		SimpleAdapter functions = new SimpleAdapter(this,getData(),R.layout.item,new String[]{"name","id"},new int[]{R.id.name,R.id.id});
		setListAdapter(functions);
	}
	public List<Map<String,Object>> getData()
	{
		List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
		Map<String, Object> map = new HashMap<String, Object>();

		map.put("name","空气");
		map.put("id","ID:0");
		list.add(map);
		
		map = new HashMap<String, Object>();
		map.put("name","石头");
		map.put("id","ID:1");
		list.add(map);
		
		return list;
	}
}
